package com.neusoft.elm.po;

import java.util.Objects;

public class Food {

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getFoodExplain() {
        return foodExplain;
    }

    public void setFoodExplain(String foodExplain) {
        this.foodExplain = foodExplain;
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg;
    }

    public Double getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(Double foodPrice) {
        this.foodPrice = foodPrice;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    private Integer foodId;
    private String foodName;
    private String foodExplain;
    private String foodImg;
    private Double foodPrice;
    private Integer businessId;
    private String remarks;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Food food = (Food) o;
        return Objects.equals(foodId, food.foodId) &&
                Objects.equals(foodName, food.foodName) &&
                Objects.equals(foodExplain, food.foodExplain) &&
                Objects.equals(foodImg, food.foodImg) &&
                Objects.equals(foodPrice, food.foodPrice) &&
                Objects.equals(businessId, food.businessId) &&
                Objects.equals(remarks, food.remarks);
    }

    @Override
    public int hashCode() {
        return Objects.hash(foodId, foodName, foodExplain, foodImg, foodPrice, businessId, remarks);
    }

    @Override
    public String toString() {
        return "Food{" +
                "foodId=" + foodId +
                ", foodName='" + foodName + '\'' +
                ", foodExplain='" + foodExplain + '\'' +
                ", foodImg='" + foodImg + '\'' +
                ", foodPrice=" + foodPrice +
                ", businessId=" + businessId +
                ", remarks='" + remarks + '\'' +
                '}';
    }
    public Food(){}
public Food(Integer foodId,String foodName,String foodExplain,String foodImg,
            Double foodPrice,String remarks,Integer businessId){

this.businessId=businessId;
this.foodExplain=foodExplain;
this.foodId=foodId;
this.foodImg=foodImg;
this.foodName=foodName;
this.foodPrice=foodPrice;
this.remarks=remarks;


}
}
